package Command.commandInterfacesImpl;

import Command.commandInterfaces.Command;
import Command.commons.interfacesImpl.GarageDoor;

/**
 * @Author: pengzx
 * @Description:
 * @Date: 15:48 2017/9/12
 * @Modified by: 1.0
 */
public class GatageDoorOpenCommand implements Command {
    GarageDoor garageDoor;
    @Override
    public void execute()
    {
        garageDoor.up();
    }

    @Override
    public void undo()
    {
        garageDoor.down();
    }

    public GatageDoorOpenCommand(GarageDoor garageDoor)
    {
        this.garageDoor = garageDoor;
    }
}
